package com.designmodel.struct.adpter;

// 实现目标接口
public class Wrapper implements Targetable {

    //	目标类
    private Source source;

    public Wrapper(Source source) {
        super();
        this.source = source;
    }

    @Override
    public void method2() {
        System.out.println("this is the targetable method!");
    }

    @Override
    public void method1() {
        source.method1();
    }
}
